package as.service.impl;

import as.dao.RecyclerDAO;
import as.entity.Recycler;
import as.service.RecyclerService;

public class RecyclerServiceImpl implements RecyclerService {

	private RecyclerDAO recyclerDAO;

	public RecyclerDAO getRecyclerDAO() {
		return recyclerDAO;
	}

	public void setRecyclerDAO(RecyclerDAO recyclerDAO) {
		this.recyclerDAO = recyclerDAO;
	}

	public boolean isRecyclerHas() {

		return this.recyclerDAO.isRecyclerHas();
	}

	public void removeRecycler(Recycler recycler) {

		this.recyclerDAO.removeRecycler(recycler);
	}

	public void saveRecycler(Recycler recycler) {

		this.recyclerDAO.saveRecycler(recycler);
	}

	public int findRecyclerFirst() {

		return this.recyclerDAO.findRecyclerFirst();
	}

	public Recycler findRecycler(int id) {

		return this.recyclerDAO.findRecycler(id);
	}

	public int[] findAllRemoveRegistNo(long id) {
		return this.recyclerDAO.findAllRemoveRegistNo(id);
	}
}
